package com.yimin.controller;


import com.yimin.mapper.TestMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("com")
public class TestController {

    @Resource
    TestMapper testMapper;

    @GetMapping("getAll")
    List<Map<String,Object>> getAll(){


     return testMapper.getAll();
    }

}
